<?php

namespace App\Admin\Actions\Grid;

use App\Admin\Forms\ImportVideoForm;
use Dcat\Admin\Widgets\Modal;
use Dcat\Admin\Grid\BatchAction;

class ImportVideoAction extends BatchAction
{
    protected $title = "<div class='btn btn-success'>批量导入</div>";

    public function render()
    {
        // 实例化表单类
        $form = ImportVideoForm::make();

        return Modal::make()
            ->lg()
            ->title('批量导入视频')
            ->body($form)
            ->button($this->title);
    }
}